import serviceAxios from "../index";


export const uploadApi = (data) => {
    return serviceAxios({
        url: "common/upload",
        method: "post",
        data,
    });
};

export const getImgsApi = (imgType, tag, pageNo, pageSize) => {
    return serviceAxios({
        url: "img/getImgs/" + imgType + "/" + tag + "/" + pageNo + "/" + pageSize,
        method: "get",
    });
};

export const getByImgsApi = (imgType, pageNo, pageSize) => {
    return serviceAxios({
        url: "img/getByImgs/" + imgType + "/" + pageNo + "/" + pageSize,
        method: "get",
    });
};

export const getImgTagsApi = (imgType) => {
    return serviceAxios({
        url: "img/getImgTags/" + imgType,
        method: "get",
    });
};

